package com.yanqu.road.entity.activity.yearMaster;

import com.alibaba.fastjson.annotation.JSONField;

public class GridDetail {
    private int gridType; //格子类型

    @JSONField(serialize =  false)
    private int weight;
    @JSONField(serialize =  false)
    private int linkReduce;
    @JSONField(serialize =  false)
    private int leanReduce;


    public GridDetail(int gridType) {
        this.gridType = gridType;
    }

    public GridDetail(int gridType, int weight, int linkReduce, int leanReduce) {
        this.gridType = gridType;
        this.weight = weight;
        this.linkReduce = linkReduce;
        this.leanReduce = leanReduce;
    }

    public GridDetail() {
    }

    public int getGridType() {
        return gridType;
    }

    public void setGridType(int gridType) {
        this.gridType = gridType;
    }

    public int getWeight() {
        return weight;
    }

    public void setWeight(int weight) {
        this.weight = weight;
    }


    public int getLinkReduce() {
        return linkReduce;
    }

    public void setLinkReduce(int linkReduce) {
        this.linkReduce = linkReduce;
    }

    public int getLeanReduce() {
        return leanReduce;
    }

    public void setLeanReduce(int leanReduce) {
        this.leanReduce = leanReduce;
    }

    public GridDetail copy() {
        GridDetail gridDetail = new GridDetail();
        gridDetail.setGridType(gridType);
        return gridDetail;
    }
}
